<script setup lang="ts">
</script>

<template>
  <div class="container">

    
    <!-- 3个主页面的展示 -->
    <router-view></router-view>

    <!-- 底部导航 -->
    <footer class="footer" v-if="!$route.meta.hidden">
      <router-link to="/">
        <van-icon name="wap-home-o" size="20" />
        <p>首页</p>
      </router-link>
      <router-link to="/lecture">
        <van-icon name="video-o" size="20" />
        <p>讲座</p>
      </router-link>
      <router-link to="/my">
        <van-icon name="contact-o" size="20" />
        <p>我的</p>
      </router-link>
    </footer>
  </div>
</template>

<style lang="scss">
html,
body,
#app,
.container {
  width: 100%;
  height: 100%;
}

html {
  font-size: 14px;

  body {
    font-size: 14px;
    .container {
    display: flex;
    flex-direction: column;

    .box {
      flex: 1;
      display: flex;
      flex-direction: column;
      overflow: auto;

      .header {
        width: 100%;
        height: 50px;
        background-color: #4bc4b1;
        line-height: 50px;
        text-align: center;
        color: white;
      }

      .content {
        overflow: auto;
      }
    }

    .footer {
      height: 60px;
      border-top: 1px solid gray;
      display: flex;

      a {
        flex: 1;
        text-decoration: none;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        color: black;
        line-height: 6px;
      }

      a.router-link-active {
        color: #22b1c1;
      }
    }
  }
  }
}
</style>
